﻿namespace WMS6.Web.BaseInfoServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DataContract(Name="DistributionRangeInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity")]
    public class DistributionRangeInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string AlternateCarrierIDField;
        [OptionalField]
        private string CarrierIDField;
        [OptionalField]
        private string CityField;
        [OptionalField]
        private decimal ContinuousWeightField;
        [OptionalField]
        private decimal ContinuousWeightPriceField;
        [OptionalField]
        private string CountiesField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [OptionalField]
        private string DistrictField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private decimal InitialWeightField;
        [OptionalField]
        private decimal InitialWeightPriceField;
        [OptionalField]
        private string ProvinceField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private byte[] TsField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string AlternateCarrierID
        {
            get
            {
                return this.AlternateCarrierIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AlternateCarrierIDField, value))
                {
                    this.AlternateCarrierIDField = value;
                    this.RaisePropertyChanged("AlternateCarrierID");
                }
            }
        }

        [DataMember]
        public string CarrierID
        {
            get
            {
                return this.CarrierIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CarrierIDField, value))
                {
                    this.CarrierIDField = value;
                    this.RaisePropertyChanged("CarrierID");
                }
            }
        }

        [DataMember]
        public string City
        {
            get
            {
                return this.CityField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CityField, value))
                {
                    this.CityField = value;
                    this.RaisePropertyChanged("City");
                }
            }
        }

        [DataMember]
        public decimal ContinuousWeight
        {
            get
            {
                return this.ContinuousWeightField;
            }
            set
            {
                if (!this.ContinuousWeightField.Equals(value))
                {
                    this.ContinuousWeightField = value;
                    this.RaisePropertyChanged("ContinuousWeight");
                }
            }
        }

        [DataMember]
        public decimal ContinuousWeightPrice
        {
            get
            {
                return this.ContinuousWeightPriceField;
            }
            set
            {
                if (!this.ContinuousWeightPriceField.Equals(value))
                {
                    this.ContinuousWeightPriceField = value;
                    this.RaisePropertyChanged("ContinuousWeightPrice");
                }
            }
        }

        [DataMember]
        public string Counties
        {
            get
            {
                return this.CountiesField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CountiesField, value))
                {
                    this.CountiesField = value;
                    this.RaisePropertyChanged("Counties");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public string District
        {
            get
            {
                return this.DistrictField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DistrictField, value))
                {
                    this.DistrictField = value;
                    this.RaisePropertyChanged("District");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public decimal InitialWeight
        {
            get
            {
                return this.InitialWeightField;
            }
            set
            {
                if (!this.InitialWeightField.Equals(value))
                {
                    this.InitialWeightField = value;
                    this.RaisePropertyChanged("InitialWeight");
                }
            }
        }

        [DataMember]
        public decimal InitialWeightPrice
        {
            get
            {
                return this.InitialWeightPriceField;
            }
            set
            {
                if (!this.InitialWeightPriceField.Equals(value))
                {
                    this.InitialWeightPriceField = value;
                    this.RaisePropertyChanged("InitialWeightPrice");
                }
            }
        }

        [DataMember]
        public string Province
        {
            get
            {
                return this.ProvinceField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ProvinceField, value))
                {
                    this.ProvinceField = value;
                    this.RaisePropertyChanged("Province");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public byte[] Ts
        {
            get
            {
                return this.TsField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TsField, value))
                {
                    this.TsField = value;
                    this.RaisePropertyChanged("Ts");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

